package com.highspeed.bdk.gateway.service;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Service;

import java.io.IOException;
import java.net.Socket;

@Service
@ConfigurationProperties(prefix = "gateway")
public class GuiQueryService {
    private String host;
    private int port;
    private Socket socket;

    public GuiQueryService() {
//        try {
//            socket = new Socket(getHost(), getPort());
//        } catch (IOException e) {
//            e.printStackTrace();
//            System.out.println("创建socket成功。。。。。。。。。。。。");
//        }
    }


    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }
}
